package edu.nwpu.zya.coreops.modules.monitor.dao;

import edu.nwpu.zya.coreops.modules.monitor.entity.MetricEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author zhouyuang
 * @email 742025491@qq.com
 * @date 2022-04-18 22:48:27
 */
@Mapper
public interface MetricDao extends BaseMapper<MetricEntity> {

    List<MetricEntity> getEcsMetricsByInstanceId(@Param("instanceId") String instanceId);

    List<MetricEntity> getRdsMetricsByInstanceId(@Param("instanceId") String instanceId);

    List<MetricEntity> getAppMetricsByInstanceId(@Param("instanceId")String instanceId);
}
